<div class="tab_item" style="display: block">
    <div class="grid" style="height:400px;">
        <table id="page_table_dicide_${pid}"></table>
    </div>
</div>

<script>
    $(function () {
        $('#page_table_dicide_${pid}').datagrid({
            fit: true,
            width: '100%',
            height: '100%',
            striped: true,
            url: "${contextPath}/security/hdw/exchange_order_money_divide/page.htm?orderId=${orderId}",
            fitColumns: true,
            idField: 'id',
            singleSelect: true,
            selectOnCheck: false,
            checkOnSelect: false,
            autoRowHeight: false,
            rowStyler: gridRowStyler,
            columns: [
                [
                    {
                        title: '编号',
                        align: 'center',
                        field: 'num',
                        width: 40
                    },
                    {
                        title: '换电次数',
                        align: 'center',
                        field: 'amount',
                        width: 40
                    },
                    {
                        title: '机构类型',
                        align: 'center',
                        field: 'orgTypeName',
                        width: 60
                    },
                    {
                        title: '机构名称',
                        align: 'center',
                        field: 'orgIdName',
                        width: 40
                    },
                    {
                        title: '分配金额(元)',
                        align: 'center',
                        field: 'money',
                        width: 60,
                        formatter: function (val, row) {
                            return (val / 100).toFixed(2);
                        }
                    }
                ]
            ],
            onLoadSuccess: function () {
                $('#page_table_dicide_${pid}').datagrid('clearChecked');
                $('#page_table_dicide_${pid}').datagrid('clearSelections');
            }
        });
    });
</script>